package com.lin.redis.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.redis.core.index.Indexed;

/**
 * @作者: 林江
 * @创建时间: 2024/3/20
 * @功能:
 */
@Data
@RedisHash("student")
public class Student {

    @Id
    private String id;
    @Indexed
    private String name;
    @Indexed
    private Double scope;
    @Indexed
    private Integer gender;

}
